package gui.customizer.panes.dhcp;

import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import net.miginfocom.swing.MigLayout;
import javax.swing.JButton;

public class SaveAndSend extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -778630352786693860L;
	private JButton btnSendConfiguration;

	/**
	 * Create the panel.
	 */
	public SaveAndSend() {
		setLayout(new MigLayout("", "[]", "[]"));
		this.setBorder(BorderFactory.createTitledBorder("Save and send"));
		
		btnSendConfiguration = new JButton("Send configuration");
		add(btnSendConfiguration, "cell 0 0");
	}
	
	public void addListenerToSendButton(ActionListener l) {
		btnSendConfiguration.addActionListener(l);
	}
}
